package com.ohxwj.modules.web.service.impl;

import com.ohxwj.modules.web.dao.WebRecommendDao;
import com.ohxwj.modules.web.entity.WebRecommendEntity;
import com.ohxwj.modules.web.service.WebRecommendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2018-04-17.
 */
@Service("recommendService")
public class WebRecommendServiceImpl implements WebRecommendService {

    @Autowired
    private WebRecommendDao webRecommendDao;

    @Override
    public int updateRecommend(WebRecommendEntity webRecommendEntity) {
        return webRecommendDao.update(webRecommendEntity);
    }

    @Override
    public List<WebRecommendEntity> queryList() {
        return webRecommendDao.queryList(null);
    }

}
